var myExampleData = {};

myExampleData.lineChartOptionsCPU = {
	xaxis : {
		minorTickFreq : 10
	},
	grid : {
		minorVerticalLines : true
	},
	colors: ['#00A8F0'], 
	noTicks:12,
	  xaxis: {
            ticks:[[0,"0"],[1,"1"],[2,"2"],[3,"3"],[4,"4"],[5,"5"],[6,"6"],[7,"7"],[8,"8"],[9,"9"],[10,"10"],[11,"11"],[12,"12"],[13,"13"],[14,"14"],[15,"15"],[16,"16"],[17,"17"],[18,"18"],[19,"19"],[20,"20"],[21,"21"],[22,"22"],[23,"23"],[24,"24"]], // 自定义X轴
               minorTicks: null,
               showLabels:true,                             // 是否显示X轴刻度
               showMinorLabels:false,
               labelsAngle:15,                              //x轴文字倾斜角度
               title:'小时',                                 //x轴标题
               titleAngle:0,                                //x轴标题倾斜角度
               noTicks:24,                                   //当使用自动增长时,x轴刻度的个数
               minorTickFreq:null,                           //
               tickFormatter: Flotr.defaultTickFormatter,   //刻度的格式化方式
               tickDecimals:0,                              //刻度小数点后的位数
               min:null,                                    //刻度最小值  X轴起点的值
               max:null,                                    //刻度最大值
               autoscale:true,
               autoscaleMargin:0,
               color:null,                             //x轴刻度的颜色
               mode:'normal',
               timeFormat:null,                            
               timeMode:'UTC',                               //For UTC time ('local' for local time).
               timeUnit:'year',                             //时间单位 (millisecond, second, minute, hour, day, month, year)
               scaling:'linear',                            //linear or logarithmic
               base:Math.E,
               titleAlign:'center',                         //标题对齐方式
               margin:true
           },
};


myExampleData.lineChartOptionsMemory = {
	xaxis : {
		minorTickFreq : 10
	},
	grid : {
		minorVerticalLines : true
	},
	colors: ['#C0D800'], 
	noTicks:12,
	  xaxis: {
            ticks:[[0,"周一"],[1,"周二"],[2,"周三"],[3,"周四"],[4,"周五"],[5,"周六"],[6,"周日"]], // 自定义X轴
               minorTicks: null,
               showLabels:true,                             // 是否显示X轴刻度
               showMinorLabels:false,
               labelsAngle:15,                              //x轴文字倾斜角度
               title:'日期',                                 //x轴标题
               titleAngle:0,                                //x轴标题倾斜角度
               noTicks:7,                                   //当使用自动增长时,x轴刻度的个数
               minorTickFreq:null,                           //
               tickFormatter: Flotr.defaultTickFormatter,   //刻度的格式化方式
               tickDecimals:0,                              //刻度小数点后的位数
               min:null,                                    //刻度最小值  X轴起点的值
               max:null,                                    //刻度最大值
               autoscale:true,
               autoscaleMargin:0,
               color:null,                             //x轴刻度的颜色
               mode:'normal',
               timeFormat:null,                            
               timeMode:'UTC',                               //For UTC time ('local' for local time).
               timeUnit:'year',                             //时间单位 (millisecond, second, minute, hour, day, month, year)
               scaling:'linear',                            //linear or logarithmic
               base:Math.E,
               titleAlign:'center',                         //标题对齐方式
               margin:true
           },
};


myExampleData.lineChartOptionsNet = {
	xaxis : {
		minorTickFreq : 10
	},
	grid : {
		minorVerticalLines : true
	},
	colors: ['#4DA74D'], 
	noTicks:12,
	  xaxis: {
            ticks:[[1,"一月"],[2,"二月"],[3,"三月"],[4,"四月"],[5,"五月"],[6,"六月"],[7,"七月"],[8,"八月"],[9,"九月"],[10,"十月"],[11,"十一月"],[12,"十二月"]], // 自定义X轴
               minorTicks: null,
               showLabels:true,                             // 是否显示X轴刻度
               showMinorLabels:false,
               labelsAngle:15,                              //x轴文字倾斜角度
               title:'月份',                                 //x轴标题
               titleAngle:0,                                //x轴标题倾斜角度
               noTicks:12,                                   //当使用自动增长时,x轴刻度的个数
               minorTickFreq:null,                           //
               tickFormatter: Flotr.defaultTickFormatter,   //刻度的格式化方式
               tickDecimals:0,                              //刻度小数点后的位数
               min:null,                                    //刻度最小值  X轴起点的值
               max:null,                                    //刻度最大值
               autoscale:true,
               autoscaleMargin:0,
               color:null,                             //x轴刻度的颜色
               mode:'normal',
               timeFormat:null,                            
               timeMode:'UTC',                               //For UTC time ('local' for local time).
               timeUnit:'year',                             //时间单位 (millisecond, second, minute, hour, day, month, year)
               scaling:'linear',                            //linear or logarithmic
               base:Math.E,
               titleAlign:'center',                         //标题对齐方式
               margin:true
           },
};

myExampleData.constructLineChartDataCPU = function() {
	var d1 = [[0, 3], [4, 8], [8, 5], [9, 13]];
	return [d1];
};
myExampleData.lineChartDataCPU = myExampleData.constructLineChartDataCPU();



myExampleData.constructLineChartDataCPU = function() {
	var d1 = [[0, 20], [1, 32], [2, 54], [3, 88],[4, 30], [5, 22], [6, 54], [7, 28], [8, 14], [9, 18], [10, 24], [11, 48], [12, 14], [13, 24], [14, 48], [15, 14], [16, 48], [17, 14], [18, 48], [19, 14], [20, 48], [21, 14], [22, 48], [23, 14], [24, 14]];
	return [d1];
};
myExampleData.lineChartDataCPU = myExampleData.constructLineChartDataCPU();

myExampleData.constructLineChartDataMemory = function() {
	var d1 = [[0, 130], [1, 222], [2, 154], [3, 88],[4, 130], [5, 222], [6, 154]];
	return [d1];
};
myExampleData.lineChartDataMemory = myExampleData.constructLineChartDataMemory();

myExampleData.constructLineChartNet = function() {
	var d1 = [[0, 130], [1, 222], [2, 154], [3, 88],[4, 130], [5, 222], [6, 154], [7, 88], [8, 154], [9, 88], [10, 154], [11, 88], [12, 154]];
	return [d1];
};
myExampleData.lineChartNet = myExampleData.constructLineChartNet();


